package com.oscar.web.dao;

import com.oscar.web.domain.Book;
import com.oscar.web.domain.buy;
import com.oscar.web.domain.rating;
import org.springframework.data.repository.Repository;

public interface UserBookBuyRepository extends Repository<buy, Long> {
    public buy save(buy userBookBuy);

    public Boolean existsByUserIdAndBookId(int userId,int bookId);

    public buy getByUserIdAndBookId(int userId,int bookId);
}
